#!/bin/bash

count=`ps -A | wc -l`

echo Amount of processes :: $count

if [ $count -gt 500 ]
then
 echo there is more than 500 processes running...
fi

if [ $count -lt 500 ]
then
 echo there is less than 500 processes running...
fi
